{include file="$AdminFullPath/skins/$DefaultSkin/header.tpl" title=foo}

<table width="100%">
  <tr>
    <td class="module_title" nowrap>
      <a href="index.php">{$SiteTitle}</a> &raquo; <a href="{$PHPSELF}?mod={$mod}">{$OrbitFAQTitle} </a>
    </td>
    <td class="action_buttons" nowrap>
      <a href="{$PHPSELF}?mod={$mod}&action=create"><img src="skins/{$DefaultSkin}/images/create.gif" style="border: 0px; vertical-align: bottom;" alt="Create New FAQ" title="Create New FAQ"></a>
    </td>
  </tr>
</table>
<br />

{if $message != ''}
<table width="100%" class="message_tbl">
  <tr>
    <td style="vertical-align: bottom;" width="20">
      <img src="skins/{$DefaultSkin}/images/notice.gif">
    </td>
    <td class="message" nowrap>
      {$message}
    </td>
  </tr>
</table>
<br />
{/if}

<table cellspacing="1" class="index_body">
  <tr>
    <td class="row3 one">id</td>
    <td class="row3 two">title</td>
    <td class="row3 two" nowrap><center>default on reg</center></td>
    <td class="row3 two" colspan="9" nowrap><center>group actions</center></td>
  </tr>
  {section name=GroupListing loop=$GroupListing}
  <tr>
    <td class="row{$GroupListing[GroupListing].groups_row} one">{$GroupListing[GroupListing].groups_id}</td>
    <td class="row{$GroupListing[GroupListing].groups_row} two">
      <h3>{$GroupListing[GroupListing].groups_title}</h3>
    </td>
    <td class="row{$GroupListing[GroupListing].groups_row} one" nowrap>
      {if $GroupListing[GroupListing].groups_defaultonreg != '1'}
        no
      {else}
        yes
      {/if}
    </td>
    <td class="row{$GroupListing[GroupListing].groups_row} one"><a href="{$PHP_SELF}?mod={$mod}&action=modify&group={$GroupListing[GroupListing].groups_id}">modify</a></td>
    <td class="row{$GroupListing[GroupListing].groups_row} one" nowrap>
      {if $GroupView != '1'}
        <a href="{$PHP_SELF}?mod={$mod}&group={$GroupListing[GroupListing].groups_id}">view details</a>
      {else}
        <a href="{$PHP_SELF}?mod={$mod}">hide details</a>
      {/if}
    </td>
    <td class="row{$GroupListing[GroupListing].groups_row} one">
      <a href="{$PHP_SELF}?mod={$mod}&action=delete&group={$GroupListing[GroupListing].groups_id}">delete</a>
    </td>
  </tr>
  {if $GroupView == '1'}
  <tr>
    <td class="row{$GroupListing[GroupListing].groups_row} one">
    </td>
    <td class="row{$GroupListing[GroupListing].groups_row} two" colspan="15">
      <table width="100%">
        <tr>
          <td width="50" nowrap valign="top"><B>Assigned FAQs:</b></td>
          <td nowrap>{$GroupListing[GroupListing].groups_faqs}</td>
        </tr>
        <tr>
          <td width="50" nowrap valign="top"><B>Assigned Users:</b></td>
          <td nowrap>{$GroupListing[GroupListing].groups_users}</td>
        </tr>
      </table>
    </td>
  </tr>
  {/if}
  {/section}
</table>

{include file="$AdminFullPath/skins/$DefaultSkin/footer.tpl"}